package ar.edu.uade.ingsoft.proveedor;

import java.util.logging.Level;
import java.util.logging.Logger;

import javax.ejb.Stateless;
import javax.jws.WebService;

/**
 * Session Bean implementation class AdministradorListasBean
 */
@WebService(serviceName="AdministradorListas", portName="AdministradorListasPort", endpointInterface="ar.edu.uade.ingsoft.proveedor.AdministradorListas")
public @Stateless class AdministradorListasBean implements AdministradorListas {

	private Logger logger = Logger.getLogger(Finals.LOGGER);
	
	public String obtenerListaPrecios() {
		logger.log(Level.INFO, "entered obtenerListaPrecios on AdministradorListasBean");
//		StringBuffer res = new StringBuffer();
//		try {
//			BufferedReader reader = new BufferedReader(new FileReader("XML\\xmlProveedoresCasaCentral.xml"));
//			String line = reader.readLine();
//			while(line!=null){
//				res.append("\""+line+"\"+\n");
//				line = reader.readLine();
//			}	
//			reader.close();
//		} catch (IOException e) {
//			logger.log(Level.SEVERE, e.getMessage());
//		}
		return Finals.XMLLISTAPRECIOS;
	}


}
